import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/Main.vue'
import Login from '@/components/Login.vue'
import Success from '@/components/Success.vue'
import Fail from '@/components/Fail.vue'
import Part from '@/components/Part.vue'
import Loginlog from '@/components/Loginlog.vue'
import Settinglog from '@/components/Settinglog.vue'

Vue.use(Router) // 注册vue-router

export default new Router({
  routes: [
    {
      name: 'Main',
      path: '/',
      component: Main
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/success',
      name: 'Success',
      component: Success
    },
    {
      path: '/fail',
      name: 'Fail',
      component: Fail
    },
    {
      path: '/part',
      name: 'Part',
      component: Part
    },
    {
      path: '/loginlog',
      name: 'Loginlog',
      component: Loginlog
    }, {
      path: '/settinglog',
      name: 'Settinglog',
      component: Settinglog
    },
  ]
})
